package com.fxf.srb.sms.client.fallback;

import com.fxf.srb.sms.client.CoreUserInfoClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author 饭小范
 * @version 1.0
 * @description: TODO
 * @date 2021/5/30 18:07
 *
 * 服务容错类，当无法调用远程服务校验手机号是否注册时，直接发送短信
 */
@Slf4j
@Service
public class CoreUserInfoClientFallback implements CoreUserInfoClient {


    @Override
    public boolean checkMobile(String mobile) {
        log.error("远程调用失败，服务熔断");
        return false;
    }
}
